package com.linkoog.devtools.http.request.common.response_body.text;

import com.linkoog.devtools.http.request.common.ResponseBodyType;
import com.linkoog.devtools.http.request.common.response_body.StringResponseBody;

public class HtmlResponseBody extends StringResponseBody {

    public HtmlResponseBody() {
    }

    public HtmlResponseBody(String value) {
        this.value = value;
    }

    public static HtmlResponseBody of(String value) {
        return new HtmlResponseBody(value);
    }

    @Override
    public ResponseBodyType bodyType() {
        return ResponseBodyType.HTML;
    }

    @Override
    public String toString() {
        return "HtmlResponseBody{" +
                "value='" + value + '\'' +
                '}';
    }
}
